<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: DongYuee
  Date: 2019/12/6
  Time: 16:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<a href="${pageContext.request.contextPath }/htuser/tianjia"><button>添加用户</button></a>
<form action="${pageContext.request.contextPath }/htuser/findUser" method="get">
    用户信息：
    <table width="100%" border=1>
        <tr>
            <td>ID</td>
            <td>用户名</td>
            <td>电话</td>
            <td>邮箱</td>
            <td>头像</td>
            <td>地址</td>
            <td>性别</td>
            <td>日期</td>
            <td>操作</td>
        </tr>
        <c:forEach items="${users}" var="users">
            <tr>
                <td>${users.id}</td>
                <td>${users.username}</td>
                <td>${users.phone}</td>
                <td>${users.email}</td>
                <td>${users.photo}</td>
                <td>${users.address}</td>
                <td>${users.sex}</td>
                <td>${users.birthday}</td>
                <td><a href="${pageContext.request.contextPath }/htuser/updateUser?id=${users.id}">修改</a>
                    <a href="${pageContext.request.contextPath }/htuser/delete?id=${users.id}">删除</a>
                </td>

            </tr>
        </c:forEach>
    </table>
</form>
</body>
</html>
